    // 1.初始化楼层的颜色
    let oPages = document.querySelectorAll(".louceng>ul>li");
    let colorArr = [];
            for (let i = 0; i < oPages.length; i++) {
                let page = oPages[i];
                page.style.background = colorArr[i];
            }
     
            // 2.实现点击谁就选中谁
            let oItems = document.querySelectorAll(".louceng>ol>li");
            let currentItem = oItems[0];
     
            // 获取可视区域的高度
            let screenHeight = getScreen().height;
     
            let timerId = null;
            for (let i = 0; i < oItems.length; i++) {
                let item = oItems[i];
                item.onclick = function() {
                    currentItem.className = "";
                    this.className = "selected";
                    currentItem = this;
                    clearInterval(timerId);
                    timerId = setInterval(function() {
                        let begin = document.documentElement.scrollTop;
                        let target = i * screenHeight;
                        let step = (target - begin) * 0.2;
                        begin += step;
                        if (Math.abs(Math.floor(step)) <= 1) {
                            clearInterval(timerId);
                            document.documentElement.scrollTop = i * screenHeight;
                            return;
                        }
                        document.documentElement.scrollTop = begin;
                    }, 50);
                }
            }
     
            //获取浏览器视口宽高
            function getScreen() {
                let width, height;
                if (window.innerWidth) {
                    width = window.innerWidth;
                    height = window.innerHeight;
                } else if (document.compatMode === "BackCompat") {
                    width = document.body.clientWidth;
                    height = document.body.clientHeight;
                } else {
                    width = document.documentElement.clientWidth;
                    height = document.documentElement.clientHeight;
                }
                return {
                    width: width,
                    height: height
                }
            }